package com.cskaoyan.bean.bo;

import com.cskaoyan.bean.po.RolePO;
import lombok.Data;

import java.util.Date;
@Data
public class RoleBO {

    private Integer id;
    private String name;
    private String desc;
    private Boolean enabled;
    private Date addTime;
    private Date updateTime;
    private Boolean deleted;

    public static RolePO getRolePO(RoleBO roleBO){
        RolePO rolePO = new RolePO();
        rolePO.setId(roleBO.getId());
        rolePO.setName(roleBO.getName());
        rolePO.setUpdateTime(roleBO.getUpdateTime());
        rolePO.setDesc(roleBO.getDesc());
        rolePO.setEnabled(roleBO.getEnabled());
        rolePO.setAddTime(roleBO.getAddTime());
        rolePO.setDeleted(roleBO.getDeleted());
        return rolePO;
    }

}
